package com.pro.common.service.sitecontent.fallback;

import com.pro.common.api.sitecontent.intf.CurrencyExchangeRateFeignClient;
import com.pro.common.api.sitecontent.model.db.CurrencyExchangeRate;
import com.pro.common.service.sitecontent.service.CurrencyExchangeRateService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("")
@AllArgsConstructor
public class CurrencyExchangeRateFeignFallback implements CurrencyExchangeRateFeignClient {
    private CurrencyExchangeRateService service;

    @Override
    public List<CurrencyExchangeRate> getActiveList() {
        return service.getActiveList(null);
    }
}
